package myky.com.doctorapp.contract;

import io.reactivex.Observable;
import myky.com.doctorapp.entity.VersionEntity;
import myky.com.doctorapp.base.BaseEntity;
import myky.com.doctorapp.base.BaseView;

/**
 * @author Mr.li
 */
public interface MainActivityContract {
    interface Model {
        /**
         * 版本检测更新
         * @return
         */
        Observable<BaseEntity<VersionEntity.PayLoadBean>> checkVersion();
    }

    interface View extends BaseView<VersionEntity.PayLoadBean> {
        void showVersion(VersionEntity.PayLoadBean versionBean);
    }

    interface Presenter {
        void checkVersion();
    }
}
